{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제53_노인_지난선거_정책\data\code_analysis_1_panel.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}20 May 2025, 20:24:12

{com}. tsset id year
{res}{txt}{col 8}panel variable:  {res}id (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2006 to 2021, but with gaps
{txt}{col 17}delta:  {res}1 unit

{com}. 
. xtile income_quintile = income, nq(5)

. 
. xtreg support_aged ideology income_quintile sex education marriage religion homeownership i.region i.year, fe
{p 0 6 2}{txt}note: sex omitted because of collinearity{p_end}
{p 0 6 2}note: 6.region omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     3,202
{txt}Group variable: {res}id{txt}{col 49}Number of groups{col 67}={col 69}{res}     1,929

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0913{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0142{col 63}{txt}avg{col 67}={col 69}{res}       1.7
{txt}     overall = {res}0.0205{col 63}{txt}max{col 67}={col 69}{res}         4

{txt}{col 49}F({res}15{txt},{res}1258{txt}){col 67}={col 70}{res}     8.43
{txt}corr(u_i, Xb){col 16}= {res}-0.3356{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   support_aged{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ideology {c |}{col 17}{res}{space 2}-.0362596{col 29}{space 2} .0221386{col 40}{space 1}   -1.64{col 49}{space 3}0.102{col 57}{space 4}-.0796922{col 70}{space 3} .0071731
{txt}income_quintile {c |}{col 17}{res}{space 2}-.0129227{col 29}{space 2} .0251149{col 40}{space 1}   -0.51{col 49}{space 3}0.607{col 57}{space 4}-.0621944{col 70}{space 3} .0363489
{txt}{space 12}sex {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 6}education {c |}{col 17}{res}{space 2}-.0719789{col 29}{space 2} .2602657{col 40}{space 1}   -0.28{col 49}{space 3}0.782{col 57}{space 4}-.5825815{col 70}{space 3} .4386237
{txt}{space 7}marriage {c |}{col 17}{res}{space 2} .1854912{col 29}{space 2} .1088183{col 40}{space 1}    1.70{col 49}{space 3}0.089{col 57}{space 4}-.0279941{col 70}{space 3} .3989764
{txt}{space 7}religion {c |}{col 17}{res}{space 2} .0848353{col 29}{space 2} .0589823{col 40}{space 1}    1.44{col 49}{space 3}0.151{col 57}{space 4}-.0308793{col 70}{space 3} .2005499
{txt}{space 2}homeownership {c |}{col 17}{res}{space 2} .0095556{col 29}{space 2} .0890942{col 40}{space 1}    0.11{col 49}{space 3}0.915{col 57}{space 4}-.1652341{col 70}{space 3} .1843453
{txt}{space 15} {c |}
{space 9}region {c |}
{space 13}2  {c |}{col 17}{res}{space 2}-.2040342{col 29}{space 2} .2805626{col 40}{space 1}   -0.73{col 49}{space 3}0.467{col 57}{space 4}-.7544563{col 70}{space 3}  .346388
{txt}{space 13}3  {c |}{col 17}{res}{space 2}-.5335292{col 29}{space 2} .4421323{col 40}{space 1}   -1.21{col 49}{space 3}0.228{col 57}{space 4}-1.400927{col 70}{space 3} .3338686
{txt}{space 13}4  {c |}{col 17}{res}{space 2}-.0059322{col 29}{space 2} .5932746{col 40}{space 1}   -0.01{col 49}{space 3}0.992{col 57}{space 4}-1.169849{col 70}{space 3} 1.157984
{txt}{space 13}5  {c |}{col 17}{res}{space 2}-.3532491{col 29}{space 2} .4193778{col 40}{space 1}   -0.84{col 49}{space 3}0.400{col 57}{space 4}-1.176006{col 70}{space 3} .4695078
{txt}{space 13}6  {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 13}7  {c |}{col 17}{res}{space 2} .0996176{col 29}{space 2} .3584962{col 40}{space 1}    0.28{col 49}{space 3}0.781{col 57}{space 4}-.6036988{col 70}{space 3}  .802934
{txt}{space 15} {c |}
{space 11}year {c |}
{space 10}2012  {c |}{col 17}{res}{space 2}-.1319986{col 29}{space 2} .0879954{col 40}{space 1}   -1.50{col 49}{space 3}0.134{col 57}{space 4}-.3046326{col 70}{space 3} .0406354
{txt}{space 10}2015  {c |}{col 17}{res}{space 2}-.4552419{col 29}{space 2} .0902216{col 40}{space 1}   -5.05{col 49}{space 3}0.000{col 57}{space 4}-.6322434{col 70}{space 3}-.2782405
{txt}{space 10}2018  {c |}{col 17}{res}{space 2}-.4522821{col 29}{space 2} .1202034{col 40}{space 1}   -3.76{col 49}{space 3}0.000{col 57}{space 4}-.6881033{col 70}{space 3}-.2164608
{txt}{space 10}2021  {c |}{col 17}{res}{space 2}-.2636812{col 29}{space 2} .1047247{col 40}{space 1}   -2.52{col 49}{space 3}0.012{col 57}{space 4}-.4691354{col 70}{space 3}-.0582269
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2} 4.035587{col 29}{space 2} .4558196{col 40}{space 1}    8.85{col 49}{space 3}0.000{col 57}{space 4} 3.141336{col 70}{space 3} 4.929837
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |} {res} .63249615
        {txt}sigma_e {c |} {res}  .6710865
            {txt}rho {c |} {res} .47042262{txt}   (fraction of variance due to u_i)
{hline 16}{c BT}{hline 64}
F test that all u_i=0: F({res}1928{txt}, {res}1258{txt}) = {res}1.04{col 62}{txt}Prob > F = {res}0.2084

{com}. 
. xtreg support_national_security ideology income_quintile sex education i.marriage i.religion i.homeownership i.region i.year, fe
{p 0 6 2}{txt}note: sex omitted because of collinearity{p_end}
{p 0 6 2}note: 6.region omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     3,180
{txt}Group variable: {res}id{txt}{col 49}Number of groups{col 67}={col 69}{res}     1,913

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0799{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0003{col 63}{txt}avg{col 67}={col 69}{res}       1.7
{txt}     overall = {res}0.0004{col 63}{txt}max{col 67}={col 69}{res}         4

{txt}{col 49}F({res}15{txt},{res}1252{txt}){col 67}={col 70}{res}     7.25
{txt}corr(u_i, Xb){col 16}= {res}-0.7163{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}support_natio~y{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ideology {c |}{col 17}{res}{space 2} .0370802{col 29}{space 2} .0244351{col 40}{space 1}    1.52{col 49}{space 3}0.129{col 57}{space 4}-.0108581{col 70}{space 3} .0850184
{txt}income_quintile {c |}{col 17}{res}{space 2} .0420377{col 29}{space 2} .0278028{col 40}{space 1}    1.51{col 49}{space 3}0.131{col 57}{space 4}-.0125075{col 70}{space 3} .0965828
{txt}{space 12}sex {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 6}education {c |}{col 17}{res}{space 2}-.5058886{col 29}{space 2} .2865199{col 40}{space 1}   -1.77{col 49}{space 3}0.078{col 57}{space 4}-1.068001{col 70}{space 3} .0562234
{txt}{space 5}1.marriage {c |}{col 17}{res}{space 2} .1563904{col 29}{space 2} .1198317{col 40}{space 1}    1.31{col 49}{space 3}0.192{col 57}{space 4}-.0787027{col 70}{space 3} .3914834
{txt}{space 5}1.religion {c |}{col 17}{res}{space 2}-.0663992{col 29}{space 2} .0650507{col 40}{space 1}   -1.02{col 49}{space 3}0.308{col 57}{space 4}-.1940196{col 70}{space 3} .0612213
{txt}1.homeownership {c |}{col 17}{res}{space 2}  -.06179{col 29}{space 2}  .098084{col 40}{space 1}   -0.63{col 49}{space 3}0.529{col 57}{space 4}-.2542171{col 70}{space 3}  .130637
{txt}{space 15} {c |}
{space 9}region {c |}
{space 13}2  {c |}{col 17}{res}{space 2}-.1131174{col 29}{space 2} .3088746{col 40}{space 1}   -0.37{col 49}{space 3}0.714{col 57}{space 4}-.7190863{col 70}{space 3} .4928514
{txt}{space 13}3  {c |}{col 17}{res}{space 2}-.6455078{col 29}{space 2} .4867485{col 40}{space 1}   -1.33{col 49}{space 3}0.185{col 57}{space 4}-1.600441{col 70}{space 3} .3094249
{txt}{space 13}4  {c |}{col 17}{res}{space 2} -.294322{col 29}{space 2} .6531359{col 40}{space 1}   -0.45{col 49}{space 3}0.652{col 57}{space 4}-1.575684{col 70}{space 3} .9870396
{txt}{space 13}5  {c |}{col 17}{res}{space 2} .1094457{col 29}{space 2} .4617039{col 40}{space 1}    0.24{col 49}{space 3}0.813{col 57}{space 4}-.7963531{col 70}{space 3} 1.015244
{txt}{space 13}6  {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 13}7  {c |}{col 17}{res}{space 2}-.3257999{col 29}{space 2} .3946695{col 40}{space 1}   -0.83{col 49}{space 3}0.409{col 57}{space 4}-1.100086{col 70}{space 3} .4484866
{txt}{space 15} {c |}
{space 11}year {c |}
{space 10}2012  {c |}{col 17}{res}{space 2} .2065326{col 29}{space 2} .0968835{col 40}{space 1}    2.13{col 49}{space 3}0.033{col 57}{space 4} .0164606{col 70}{space 3} .3966046
{txt}{space 10}2015  {c |}{col 17}{res}{space 2}-.0827763{col 29}{space 2} .0993438{col 40}{space 1}   -0.83{col 49}{space 3}0.405{col 57}{space 4} -.277675{col 70}{space 3} .1121224
{txt}{space 10}2018  {c |}{col 17}{res}{space 2}-.5045462{col 29}{space 2} .1324436{col 40}{space 1}   -3.81{col 49}{space 3}0.000{col 57}{space 4}-.7643821{col 70}{space 3}-.2447104
{txt}{space 10}2021  {c |}{col 17}{res}{space 2}-.1323667{col 29}{space 2} .1154001{col 40}{space 1}   -1.15{col 49}{space 3}0.252{col 57}{space 4}-.3587657{col 70}{space 3} .0940323
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2} 4.268672{col 29}{space 2} .5028319{col 40}{space 1}    8.49{col 49}{space 3}0.000{col 57}{space 4} 3.282186{col 70}{space 3} 5.255159
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |} {res} .91733573
        {txt}sigma_e {c |} {res} .73877778
            {txt}rho {c |} {res} .60657852{txt}   (fraction of variance due to u_i)
{hline 16}{c BT}{hline 64}
F test that all u_i=0: F({res}1912{txt}, {res}1252{txt}) = {res}1.01{col 62}{txt}Prob > F = {res}0.4275

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제53_노인_지난선거_정책\data\code_analysis_1_panel.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}20 May 2025, 20:24:27
{txt}{.-}
{smcl}
{txt}{sf}{ul off}